import request from '@/utils/request'

//列表
export function listchargeback(query) {
  return request({
    url: '/system/order/chargeback/rule/list',
    method: 'get',
    params: query
  })
}
//详情
export function getchargeback(id) {
  return request({
    url: '/system/order/chargeback/rule/' + id,
    method: 'get'
  })
}

//新增
export function addchargeback(data) {
  return request({
    url: '/system/order/chargeback/rule',
    method: 'post',
    data: data
  })
}
//修改
export function updatechargeback(data) {
  return request({
    url: '/system/order/chargeback/rule',
    method: 'put',
    data: data
  })
}
//启用禁用
export function editStatus(data) {
  return request({
    url: '/system/order/chargeback/rule/editStatus',
    method: 'put',
    data: data
  })
}

//删除
export function delitechargeback(id) {
  return request({
    url: '/system/order/chargeback/rule/' + id,
    method: 'delete'
  })
}
export function listMemberRegion(query) {
  return request({
    url: '/system/region/addList',
    method: 'get',
    params: query
  })
}
export function listMemberStore(query) {
  return request({
    url: '/system/store/pullDown',
    method: 'get',
    params: query
  })
}
export function listpullDownlist(query) {
  return request({
    url: '/system/item/type/pullDown/list',
    method: 'get',
    params: query
  })
}

